<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="shortcut icon" href="/Class_management/Public/images/favicon.png" type="image/png">

  <title>14计算机1班班级管理系统</title>

  <link href="/Class_management/Public/css/style.default.css" rel="stylesheet">

  <link rel="stylesheet" href="/Class_management/Public/css/bootstrap-timepicker.min.css" />


  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="/Class_management/Public/js/html5shiv.js"></script>
  <script src="/Class_management/Public/js/respond.min.js"></script>
  <![endif]-->
</head>

<body>



<!-- Preloader -->
<div id="preloader">
    <div id="status"><i class="fa fa-spinner fa-spin"></i></div>
</div>

<section>

  <div class="leftpanel">

    <div class="logopanel">
        <h1><span>[</span> 14计算机1班 <span>]</span></h1>
    </div><!-- logopanel -->

    <div class="leftpanelinner">

        <!-- This is only visible to small devices -->
        <div class="visible-xs hidden-sm hidden-md hidden-lg">
            <div class="media userlogged">
                <img alt="" src="/Class_management/Public/images/photos/loggeduser.png" class="media-object">
                <div class="media-body">
                    <h4><?php echo ($_SESSION['dataInfo']['name']); ?></h4>
                    <span><?php echo ($_SESSION['dataInfo']['stuid']); ?></span>
                </div>
            </div>

            <h5 class="sidebartitle actitle">帐号信息</h5>
            <ul class="nav nav-pills nav-stacked nav-bracket mb30">
              <li><a href="/Class_management/index.php/Home/Index/logout"><i class="fa fa-sign-out"></i> <span>退出登录</span></a></li>
            </ul>
        </div>

      <h5 class="sidebartitle">导航</h5>
      <ul class="nav nav-pills nav-stacked nav-bracket">
        <li class="active"><a href="/Class_management/index.php/Home/Home/home"><i class="fa fa-home"></i> <span>首页</span></a></li>
        <li><a href="/Class_management/index.php/Home/Qx/qx"><i class="fa fa-th-list"></i> <span>假期去向登记</span></a></li>
        <li><a href="/Class_management/index.php/Home/Sx/sx"><i class="fa fa-th-list"></i> <span>实训信息登记</span></a></li>
        <li><a href="#"><i class="fa fa-th-list"></i> <span>其他功能暂未开放</span></a></li>

      </ul>


    </div><!-- leftpanelinner -->
  </div><!-- leftpanel -->

  <div class="mainpanel">

    <div class="headerbar">

      <a class="menutoggle"><i class="fa fa-bars"></i></a>

      <form class="searchform" action="index.html" method="post">
        <input type="text" class="form-control" name="keyword" placeholder="搜索…" />
      </form>

      <div class="header-right">
        <ul class="headermenu">

          <li>
            <div class="btn-group">
              <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                <img src="/Class_management/Public/images/photos/loggeduser.png" alt="" />
                <?php echo ($_SESSION['dataInfo']['name']); ?>
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                <li><a href="profile.html"><i class="glyphicon glyphicon-user"></i> <?php echo ($_SESSION['dataInfo']['stuid']); ?></a></li>
                <li><a href="/Class_management/index.php/Home/Index/logout"><i class="glyphicon glyphicon-log-out"></i> 退出登陆</a></li>
              </ul>
            </div>
          </li>
          <li>
            <button id="chatview" class="btn btn-default tp-icon chat-icon">
                <i class="glyphicon glyphicon-comment"></i>
            </button>
          </li>
        </ul>
      </div><!-- header-right -->

    </div><!-- headerbar -->

    <div class="pageheader">
      <h2><i class="fa fa-home"></i> 首页 <span><?php echo ($title); ?></span></h2>
    </div>

    <div class="contentpanel">


      <div class="row">
        <div class="col-md-15">
    <form id="basicForm" action="/Class_management/index.php/Home/Qx/addqx" method="post" class="form-horizontal">
        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="panel-btns">
                    <a href="" class="panel-close">&times;</a>
                    <a href="" class="minimize">&minus;</a>
                </div>
                <h4 class="panel-title">假期去向登记</h4>
                <p style="color: red;">务必认真填写，回家的需要写清楚回哪里。旅游的写清楚去哪里旅游，去玩的也得写清楚去哪玩。做兼职写清楚去哪做</p>
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-sm-3 control-label">学生名字 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="text" name="name" class="form-control" placeholder="请输入你的名字..." value="<?php echo ($_SESSION['dataInfo']['name']); ?>" required disabled/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">假期去向 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="text" name="address" class="form-control" placeholder="务必写清楚去哪回哪..." required minlength="4" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">联系人 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="text" name="contacts" class="form-control" placeholder="请输入联系人的名字..." required />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">联系电话 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="number" name="tel" class="form-control" placeholder="请输入联系人的电话号码..." required />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">离校时间 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <!--<input type="date" name="ltime" class="form-control" required />-->
                        <div class="input-group">
                            <input type="text" class="form-control" name="ltime" placeholder="yy-mm-dd 离校时间" id="datepicker" onfocus="this.blur();">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
                        </div>
                    </div>


                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">返校时间 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <!--<input type="date" name="btime" class="form-control" required />-->
                        <div class="input-group">
                            <input type="text" class="form-control" name="btime" placeholder="yy-mm-dd 返校时间" id="datepicker2" onfocus="this.blur();">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
                        </div>
                    </div>
                </div>

            </div><!-- panel-body -->
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-9 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit">提交</button>
                        <button type="reset" class="btn btn-default">重新填写</button>
                    </div>
                </div>
            </div>

        </div><!-- panel -->
    </form>

    <p class="text-primary">下面可以左右滚动</p>
    <div class="table-responsive">
        <table class="table table-success mb30">
            <thead>
            <tr>
                <th>#</th>
                <th>姓名</th>
                <th>假期去向</th>
                <th>联系人</th>
                <th>联系电话</th>
                <th>离校时间</th>
                <th>返校时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if(is_array($qxinfo)): $i = 0; $__LIST__ = $qxinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($i); ?></td>
                    <td><?php echo ($vo["name"]); ?></td>
                    <td><?php echo ($vo["address"]); ?></td>
                    <td><?php echo ($vo["contacts"]); ?></td>
                    <td><?php echo ($vo["tel"]); ?></td>
                    <td><?php echo ($vo["ltime"]); ?></td>
                    <td><?php echo ($vo["btime"]); ?></td>
                    <td>
                        <?php if($vo["name"] == $_SESSION['dataInfo']['name']): ?><a class="btn btn-danger" onclick= "if(confirm( '是否确定！ ')==false)return   false; " href="/Class_management/index.php/Home/Qx/delqx?id=<?php echo ($vo["id"]); ?>">删除</a> <a class="btn btn-info" href="/Class_management/index.php/Home/Qx/updateqx?id=<?php echo ($vo["id"]); ?>">修改</a>
                            <?php else: ?> 只能修改本人的信息<?php endif; ?>
                    </td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
    </div>


</div>



      </div><!-- row -->


    </div><!-- contentpanel -->

  </div><!-- mainpanel -->

  <div class="rightpanel">
  
  <h2>留言</h2>
    <!-- 多说评论框 start -->
    <div class="ds-thread" data-thread-key="01" data-title="假期去向登记" data-url="http://jsj1.sinaapp.com"></div>
    <!-- 多说评论框 end -->
    <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
    <script type="text/javascript">
      var duoshuoQuery = {
        short_name:"jsj1"
      };
      (function() {
        var ds = document.createElement('script');
        ds.type = 'text/javascript';ds.async = true;
        ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
        ds.charset = 'UTF-8';
        (document.getElementsByTagName('head')[0]
        || document.getElementsByTagName('body')[0]).appendChild(ds);
      })();
    </script>
    <!-- 多说公共JS代码 end -->
  </div><!-- rightpanel -->

</section>


<script src="/Class_management/Public/js/jquery-1.11.1.min.js"></script>
<script src="/Class_management/Public/js/jquery-migrate-1.2.1.min.js"></script>
<script src="/Class_management/Public/js/jquery-ui-1.10.3.min.js"></script>
<script src="/Class_management/Public/js/bootstrap.min.js"></script>
<script src="/Class_management/Public/js/modernizr.min.js"></script>
<script src="/Class_management/Public/js/jquery.sparkline.min.js"></script>
<script src="/Class_management/Public/js/toggles.min.js"></script>
<script src="/Class_management/Public/js/retina.min.js"></script>
<script src="/Class_management/Public/js/jquery.cookies.js"></script>

<script src="/Class_management/Public/js/flot/jquery.flot.min.js"></script>
<script src="/Class_management/Public/js/flot/jquery.flot.resize.min.js"></script>
<script src="/Class_management/Public/js/flot/jquery.flot.spline.min.js"></script>
<script src="/Class_management/Public/js/morris.min.js"></script>
<script src="/Class_management/Public/js/raphael-2.1.0.min.js"></script>

<!--<script src="/Class_management/Public/js/jquery.autogrow-textarea.js"></script>-->
<!--<script src="/Class_management/Public/js/bootstrap-datetimepicker.min.js"></script>-->
<!--<script src="/Class_management/Public/js/jquery.maskedinput.min.js"></script>-->
<!--<script src="/Class_management/Public/js/jquery.tagsinput.min.js"></script>-->
<!--<script src="/Class_management/Public/js/jquery.mousewheel.js"></script>-->
<!--<script src="/Class_management/Public/js/select2.min.js"></script>-->
<!--<script src="/Class_management/Public/js/dropzone.min.js"></script>-->
<!--<script src="/Class_management/Public/js/colorpicker.js"></script>-->

<script src="/Class_management/Public/js/zdy.js"></script>
<script src="/Class_management/Public/js/custom.js"></script>
<!--<script src="/Class_management/Public/js/dashboard.js"></script>-->


</body>
</html>